package com.thyme.system.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.thyme.system.vo.Iec61850LnVo;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author nana
 * @since 2021-03-24
 */
@Repository
public interface Iec61850LnDao extends BaseMapper<Iec61850LnVo> {
    @Options(useGeneratedKeys = true, keyProperty = "id", keyColumn = "id")
    @Insert("insert  into iec61850_LN (ln_inst_name,ln_inst_desc,iec61850_ld_id,vendor,dev_func_code) values (#{lnInstName},#{lnInstDesc},#{iec61850LdId},#{vendor},#{devFuncCode})")
    void insertBy(Iec61850LnVo iec61850LnVo);
}
